package month3.day29;

public class Zhandoji extends Feiji {
    private int dantoshu;

    public Zhandoji(int zizhong, int feixnggaodu, int dantoshu) {
        super(zizhong, feixnggaodu);
        this.dantoshu = dantoshu;
    }

    public int getDantoshu() {
        return dantoshu;
    }

    public void setDantoshu(int dantoshu) {
        this.dantoshu = dantoshu;
    }
    public void show(){
        super.show();
        System.out.println("弹头数"+dantoshu);
    }
    public void daodan(){
        System.out.println("发射导弹");
    }
    public void panxuan(){
        System.out.println("低空盘旋");
    }
    public void qifei(){
        System.out.print("装导弹");
        super.qifei();
    }
    public void jiangluo(){
        System.out.print("战斗结束，");
        super.jiangluo();
    }

}
